fix for MDM_SHUTDOWN