close method
Close the connection and clean up resources
Implementation
Future<void> close() async {
await disconnect();
await _outboundQueue.close();
await _messageController.close();
await _stateController.close();
await _errorController.close();
}