added BeforeExit event
Merge branch 'master' of https://github.com/jokio/jok-play.git