reconnect to server if disconnected