Sign out a user when his websocket drops out

Fix Bug #862930
Merge pull request #47 from tOkeshu/fix-862930

Sign out a user when his websocket drops out