Refactor to avoid log.Fatal, part 3: helper main function to use defer in
Refactor to avoid log.Fatal, part 3: helper main function to use defer in

Fatal calls os.Exit which doesn't run defers, so temp files were not
cleaned up.

tv42/demand,tv42/demand