Default to passive close and fix the bug of expected_next_sequence_from_peer.