added exit trap for failed config parsing