Add extra logging with stack trace when config file exists but can't be loaded

add extra logging with stack trace when config file exists but can't be loaded. Better error message and create a dummy config when there is none