Updated the server, it now connects and disconnects correctly