code: public static void main(String argv[]) throws Exception {
      FreightStreamer streamer = new FreightStreamer();
      int res;
      try {
        res = ToolRunner.run(streamer, argv);
      } finally {
        streamer.close();
      }
      System.exit(res);
    }
docs: main() has some simple utility methods