Query cancellation & timeout

unused imports