fixes #1 emit disconnect event
0.2.1