Added default close operation, added error checking, saved the world