Handle cancellation in `DatabasePool.runInteraction()`.