Sounds like your heat was a bit too high! If this happens, I recommend discarding the bits and wiping the pan clean. Don't worry, there is plenty of flavor coming from the actual mushrooms!