Question: how once upon a time ended?
Answer: As Hook slowly dies from his poisoned heart, Rumple makes the ultimate sacrifice by giving him his own heart. Not only does the act of heroism end his own life, but it finally gets rid of his dark ego once and for all. After saving everyone, he reunites with Belle in the afterlife.