Currencies rarely "go away". They are usually replaced by new ones, and the government will buy the old currency and pay you in new currency. Imagine the mayhem if a government decided that all money everyone owned would suddenly be completely worthless!