automate setTimeout housekeeping

@zaach, @vladikoff - wanna have a look?

fixes #1010 
Here, as well.