Added fatal error if misconfigured in production mode.