Okay... I guess I'm saying I followed along and changed the 6 to a 1 in the code.
In my settings of the SmartApp I configured it at 25 seconds as it was the default.
I'm using a door contact sensor. Not a tilt sensor.
I'd imagine if the door is closing it should say closing until the contact sensor returns "closed" and if it never returns "closed" after the timeout then I would say it should report the door as open still?
That's just my thought process, I'm not claiming your code does that... maybe I'm missing something.