What causes the aftertaste one gets when administered certain anesthetics and illicit IV drugs? I had an EGD last week and remembered a medical taste come into my mouth.

Some IV users have reported experienced this "taste". What causes it, and why does it have the flavor it does?