*/
try {
PlayerChar p = (PlayerChar) session.getAttribute("player");
if(p != null) {
if (p.isBattling())
p.lostBattle();
m_logoutManager.queuePlayer(p);
GameServer.getServiceManager().getMovementService().removePlayer(p.getName());
m_players.remove(p);
}
if(!(t instanceof IOException) || session.isConnected() || !session.isClosing())