When you apply Reveal Codes for a single document it is then applied to all open documents; so, even if you close Reveal Codes on the original document Reveal Codes remains open on all the other open documents and you then have to go through all of them closing them individually.
This looks like a long-standing bug to me.