Added few logs.
Closes #5. Now application can be terminated correctly.
Also some minor changes in events naming.