When you click on disconnect button, it shouldn’t just disconnect that way(instantly), there should be an option to really confirm from the user if he really wants to disconnect just in case the user mistakenly clicked on the disconnect button.
and here’s additional information about the operating system I’m using
Testnet address:ST3S7TV9KMVB27XY5PDEZTPZ30MXCJ12X5QMJ172T
Mainnet address:SP3S7TV9KMVB27XY5PDEZTPZ30MXCJ12X5MSPJN1D