Fix exceptional resource leak CID18136