fix: fix possible exception destroy function