mod - in config raise exception rather than exit.
mod - add logging and handle config fail.