Made config file loading exception safe.