...
Unfortunately database connections, like sockets, are not inherently interruptible. Consequently, this design does not permit a client to cancel a task by closing the resource it if the corresponding thread is blocked on a long running activity such as a join query.
...