Added an after filter to the app to force a flush of the document manager.