gotDisconnected() now respects the reason of disconnect
Merge branch 'honza_local'