Well, your code should be catching any normal exit case. You still won't be catching exit() within an eval block, but your END statement should happen nonetheless.
I don't see any way forward other than basic debugging in order to narrow down where, exactly, this problem occurs.
In reply to Re^5: Program unexpectedly terminates
by ColonelPanic
in thread Program unexpectedly terminates
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |