Fixed exiting on non-fatal error.