Fixed an issue with the quit event.

The id was not updated every time.
Merge pull request #1 from EhudB/patch-1

Fixed an issue with the quit event.