Handling cancel in datasource plugin?

When a query is canceled by the user, is it possible to know about this in a datasource plugin, so I can handle it gracefully? Nothing popped out at me when I looked for it.

Ideally, I’d like to be able to do some cleanup, specifically make one additional backend API call to cancel a request.

Possible? Thanks in advance!!