Ignore SocketExceptions when shutting down
Merge bug26079 into default