Separate close from save_as code.

No longer passing "create" or "update" as a parameter to save_as