// remove the entity
entityManager.unregister(clientHandle.get().getEntity());
// send a notification to the login shard
loginShard.get().trigger(
new GSNotify_ClientDisconnected(
context.getUid(),
clientHandle.getUid()));
// invalidate the client handler
clientHandle.invalidate();