doOnError

Returns a future that will also apply the passed closure on an error.