Dying now closes the connection to the server