Bypass callback's call on the close event

* Add a flag for bypass callbacks on the close event
Merge pull request #4571 from antonioparisi/master

[Joyride] Enable Joyride to bypass callbacks on close event