Replaced try/catch by non-throwing socket.close()
Prevent duplicate call to MapUpdater::deactivate causing a crash on shutdown