[untracked] added exception handling
ref #1671 [leaks cleanup]