code: public void destroy() {
          if (inputStream != null)
          {
              try
              {
                  inputStream.close();
              } catch (Throwable t)
              {
                  LOG.warn("Error closing input stream", t);
              }
              inputStream = null;
          }
          if (outputStream != null)
          {
              try
              {
                  outputStream.close();
              } catch (Throwable t)
              {
                  LOG.warn("Error closing output stream", t);
              }
              outputStream = null;
          }
          if (errorStream != null)
          {
              try
              {
                  errorStream.close();
              } catch (Throwable t)
              {
                  LOG.warn("Error closing error stream", t);
              }
              errorStream = null;
          }
          if (ffmpeg != null)
          {
              ffmpeg.destroy();
              ffmpeg = null;
          }
          if (ffmpegKiller != null)
          {
              Runtime runtime = Runtime.getRuntime();
              runtime.removeShutdownHook(ffmpegKiller);
              ffmpegKiller = null;
          }
      }
docs: If there's a ffmpeg execution in progress, it kills it.