def METHOD_NAME(self):
    """An OSError on socket shutdown will still close the socket."""
    conn = Connection()
    mock_sock = mock.Mock()
    conn._sock = mock_sock
    conn._sock.shutdown.side_effect = OSError
    conn.disconnect()
    mock_sock.shutdown.assert_called_once()
    mock_sock.close.assert_called_once()
    assert conn._sock is None