Once the at-end-of-turn ability triggers, it affects the player who controlled Measure of Wickedness at that time. If Measure of Wickedness is under a different player’s control as its at-end-of-turn ability resolves, however, Measure of Wickedness stays on the battlefield.