Query cancellation & timeout

anything that is cursor based can be cancelled.