Added exception to handle Elasticsearch fail, fixes #319