Print warning if config file parsing fails

The program will crash with an uncaught exception if the config file
contains errors. At least catch the error and print a warning about it.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>