return error to end request when canceled