A VDM is terminated when the DOS application running within it terminates, or when a virtual device driver terminates the VDM due to some illegal operation. Termination is carried out in the following way:
The criteria for abnormal termination of a VDM by a virtual device driver are discussed in VDM Termination.