i have used IDocumentEvents_Event close event to do some operation while arcmap closes. it works in the development system but after setup is deployed in another machine, it does not work. Any help will be appreciated. Otherwise please tell me how to catch arcmap close event in arcobjects .net