The issue is the the build is compiled with 10 sockets.
When you reset, the sockets are not closed. Part of the reason for this, is one of the sockets was the telnet server socket - you would loose your connection to the board.
If you saved the result of you your server connect as a global:
Then before the reset - you could do
This will shut down the connect and close the socket.
By the way, are using using a telnet connection? It is so much faster than the com port connection.
Oh - and your call to get the time - rather than have a page that returns the time - you can get the time out of the header..