I have created an application using Word Object, through which user opens the Word document for editing. And when the application is aborted abnormally, the doc remains in edit mode. And when application is run again, the document is opening in read only mode. How to handle this situation?

Can anybody help me?