Invoke tear_down when exiting test_encode_tls_sct() prematurely