Add a goto for init failure instead of duplicate calls to ac3_encode_close().