Add a mechanism to dispose of the system if a document is opened twice in the same browser