Query cancellation & timeout

historical node :P