Local disconn handling

Seems to be not working after running for a while?
Probably because of a bug in the server side.