def onSceneEndClose(self, caller, event):
        """
        Called just after the scene is closed.
        """
        # If this module is shown while the scene is closed then recreate a new parameter node immediately
        if self.parent.isEntered:
            self.initializeParameterNode()

        Called just after the scene is closed.
        
EISeg/med3d/EISegMed3D/EISegMed3D.py