Make process exit on failure configurable