}
protected void doDestroyEvent(IScopedEvent arg) {
DestroyEvent ev = (DestroyEvent) arg;
MudObject object = (MudObject) ev.getSource();
if (object instanceof Player) {
fireLeavingMessage((Player) object);
}
if (object instanceof Container) {
unregisterContents(((Container) object));
}
removeMudObject(object);
object.getCurrentContainer().removeMudObject(object);
if (object instanceof Player) {
try {
((Player) object).getTerminalOutput().close();
} catch (IOException e) {
logger.error(e, e);