call callback with an error object