gustafn
committed
on 16 Aug 16
- make sure to release all unused handles before finalize