emit an error event when a request fails

Let's make it `error` :)