Revert "Fix exception resource leak CID 18178"

This reverts commit 952cd9e8b9689ebf43268e69bfbbd82239ca8d99.