dispose static method
Disposes the underlying session. Call during app shutdown if desired.
Implementation
static Future<void> dispose() async {
if (_session != null) {
await _session!.close();
_session = null;
_inputName = null;
_outputNames = [];
}
}