added engine.time.clearAllIntervals() and engine.time.clearAllTimeouts()