mark socket wrapper is destroyed before calling destroy on the socket