fix build error from c3c9492
TCMain: force uninit if init failed