Handling errors when config file is missing, empty or when mongo drivers are not installed.