RhinoDoc.EndSaveDocument firing before save?

Rhino writes to a temp file and at the very last moment moves that temp file to the actual location.