Tiny leak fix

If processCommand creates the flag (somewhat rare), processMessage now
deletes it from the map.