code: private void safetyExit(Process process) throws IOException {
          process.getErrorStream().close();
          process.getInputStream().close();
          process.getOutputStream().close();
      }
docs: Has to be done in the end manually. Close all streams manually.
  
  @param process process with open streams
  @throws IOException if something went wrong due closing streams