Added disconnect function to the server