Catch and report error if file import operation cannot connect to Elasticsearch.
Require that data files can only be imported from a specific directory.