incorect isfinished

isTimedOut will end command at correct time.