disconnect method
Closes the connection to the AMI server.
Implementation
@override
void disconnect() {
// Cancel any pending reconnection
_reconnectionTimer?.cancel();
_reconnectionTimer = null;
_reconnectionAttempt = 0;
_handleDisconnection(reconnect: false);
}