Chips are often used in card games. They represent money. A poker player may, at any time, decide to leave the game. He will turn in his chips in exchange for money or cash.
This lead to another meaning. A person who finished or died was said to have cashed in his chips. Which is a way of saying it is time for me to finish this program.