Handle exception when configuration key is not found.