Implemented Map::onExit()