Raise an error instead of exiting the process when initializing