Catch socket error on shutdown