Save changes to versionMetadata when closing a version