close method
Disposes of this adapter.
Implementation
@override
Future close() {
if (_peer?.isClosed != true) _peer?.close();
Future.wait(_peers.where((s) => !s.isClosed).map((s) => s.close()))
.then((_) => _peers.clear());
return Future.value();
}