Reconnect and Disconnect handling for windows client