implemented basic leave event
Merge pull request #24 from pavelgj/peh

Implemented basic leave event