Add operation cancel handler (call onerror function)