made exit_on_exception backward compatible