Depending on your needs, your POA can end at various points. You could establish that someone’s control over your estate ends at a certain point. You could also choose to revoke it yourself, provided you are legally competent. A court may declare your POA is invalid and choose to end it.
Most powers of attorney end upon death.