Re-connect to server implemented if server is down