Fix Event ID 7031 or 7034 error when user logs off Windows computer