fix leaking process in release builds (assert vs. verify)