Fix exception resource leak CID 18104