Implement client disconnect and removal of entities.