Merge "res_smdi: Fix shutdown ref."