When formation stops moving almost half of members get rotation wrong.
There is function in formation SetInPosition, but I do not think that should be used mainly for that purpose as it is complement to UnsetInPosition what means member leaving position in formation.
So this is setting correct rotation once member gets and stays idle.