Fixed application from stalling if TCP connection to server is lost.
Client will automatically reconnect now when server connection is
available