Added throw_exception config variable