handled errno 107 when trying to shutdown a socket