make sure shutdown isn't used after socket is closed durring tests