handle `exit` event - closes #52
0.6.3