Close socket when destroying ReactorSocket