Implement a callback that is called when the user disconnects