The at_exit post processing has errors.
Use _exit() directly when exit (failed).

Tested: h5committest.