Catch specific exception and assert explicit --config is present
Strip unused function