Sorry, now I can't show you the entire of my code.
But I'll prepare test code as possible.

An exception that occurs when I close documents arbitrary after activate one view. Exception messages are like below

'A deactivating object is not a recently activated object'