Listen to disconnect event as well as exit