mfreerdp: modify cleanup phase