When this enchantment enters, exile target creature.
At the beginning of your upkeep, sacrifice this enchantment unless any player pays

.
When this enchantment leaves the battlefield, return the exiled card to the battlefield under its owner's control.
If Icy Prison leaves the battlefield before its first ability has resolved, its third ability will trigger and do nothing. Then its first ability will resolve and exile the targeted creature forever.