Google sketchup for mac os x

broken image

What is the best way to close SketchUp files programmatically? Since I have to batch process many files, I want to close each file before moving on to the next, otherwise the program will crash from memory exhaustion. The Ruby API to Google SketchUp has a function, open_file, but I can't find a close_file function.