Sends error object to error handler