Add errors into consul store

This is necessary to give control back to the caller and expose meaningful
metrics.