Added code to reconnect to server