when to stop physics and reset everything (Storyboard)

I’m developing a platform game and i want a restart option available for the player.
Suppose the playable part of the game runs in a Storyboard scene named "stage.lua (or just “stage”).
After i press the reset button, i want to recall the stage, so i run storyboard.gotoScene(“stage”).
My problem is that i don’t know exactly where to pause or cancel my timers, pause or stop physics, etc…
I would need to call the createScene event again, as i need it destroyed. Can i destroy the scene from itself? (might sound confusing)

[import]uid: 105206 topic_id: 25070 reply_id: 325070[/import]

When using storyboard and calling either the same scene ([lua]gotoScene(currentScene)[/lua]) or reloading the scene ([lua]reloadScene()[/lua]), the two events that I used during a reset were [lua]exitScene()[/lua] and [lua]enterScene()[/lua].

So if you keep timers and other items at a global level then you can [lua]display.remove(object)[/lua] those displayed objects, reset timers and nil anything you want to completely reset in [lua]exitScene()[/lua].

Personally I created the GUI/HUD elements in createScene()[/lua] then dynamically loaded the level data again and built up map and level entities in [lua]enterScene()[/lua]. [import]uid: 122384 topic_id: 25070 reply_id: 101836[/import]