document clean close