give up the ghost

[give up the ghost] {v. phr.} To die; stop going.

After a longillness, the old woman gave up the ghost.

The motor turned over afew times and gave up the ghost.