Emit 'disconnected' when disconnect
Merge pull request #426 from lllte/patch-1

Emit 'disconnected' when disconnect