In a workflow scenario (not sharepoint workflow, something custom) where we want to have a button in a Word Add-In taskpane to close the Word Online window after saving the file. In this button we initiate a next workflow step by saving the document, initiate the next step by e.g. setting a flag in sharepoint and closing the document editing session of the user.