Honeybees don't walk around calmly on the comb and then suddenly start stinging. Typically they give you a sign they are feeling defensive before they ever take flight. Watch for them to put their stingers in the air and fan their wings. They are spreading alarm pheromone and it is time to smoke the hive and/or finish up what you started and close them back up.