Yuck! I'd pitch it.
Next time, add your bud and butter directly into a pot of boiling water. Let it slow boil for 45 mintues or so. Strain it. Cool the strained butter and water solution in the fridge for a few hours and the cannabutter will separate from the water. Scoop it off and cook with it. No risk of burning it.