change determination of final state for timeout.