Fixed the onDisconnect callback for presence