Cooking ham in an oven with oven cleaner
I'm not sure what kind of cleaner you used, but either way, the heat changes the molecular structure of the cleaner used and 'gases' it, allowing it to permeate into your food.  It is a shame, but throw it away.