Fix to save sub-form geometry when closing.

Previously, sub-forms wouldn't have their saveSizeAndPosition()
called until the app was already gone, which would result in
their window geometry not being persisted.