Automatically reconnect after a connection drop