Reconnection fix.
Fixed code for restarting the server socket when the front end crashes
or restarts.