improvement on deterministic mode: cancel timeout.