Query cancellation & timeout

historical