Exposing elasticsearch exceptions

This is related to #437. Not sure that this is the best way to do this, I'd like to see some feedback about implementation.