Add exception handle for bad conf file

Pass the exception to callback for error handling