Tear down the session. Releases the codec and any held surface / texture. Safe to call repeatedly; no-op once disposed.
Future<void> disposeInstance(int handle);