Add the payload to the error handlers

This is super useful for custom error handlers to have what the payload
data was.
Merge pull request #112 from danielfarrell/error-context

Add payload to error handlers