"You encounter:" is what appears in chat when you get special encounter
however those cant be cancelled by pressing escape, special encounters are always forced
that message in chat appears when you enter so you didnt pressed ESC but left encounter by going to grid or using vehicle probably
one or other way, not a bug