Adding fail_on_exit error tracing