code: @Implementation
    protected static void nativeStop(long nativeObject) {
      try {
        // Close the output stream.
        getStream(nativeObject).close();
  
        // Clear the stream from both internal caches.
        fdToStream.remove(outputStreams.remove(nativeObject).getFD());
      } catch (IOException e) {
        throw new RuntimeException("Unable to close temporary file.", e);
      }
    }
docs: Closes the FileOutputStream for the associated muxer.