Catch elasticsearch errors in the Indexer class.

We can then catch and handle all these in the controller without it
having to know it's backed by elasticsearch.