add reconnection to server after disconnection