Notify before actually ending