Stopping server being disconnected