Test event for conn/disc and added a hook into the server to handle this, still need to clean up the server code + implement retry