raise custom exception instead of exit on config errors