Unsubscribe automatically when the client socket is disconnected