An LPA ends automatically if the donor dies or if they revoke it while they still have mental capacity. It can also be cancelled by the Court of Protection under certain circumstances.