Fix an issue that swith disconnected event is not delivered to applications in some cases.