handling exceptions due to missing config

Signed-off-by: Mikolaj Szabo <savingprivateblue@gmail.com>