This was probably what was going through his mind:-

"Ok, I can see the outside but there's this... Barrier in my way. Ok, I wait for it to open for me. Ok. No. It's not opening for me. How do I do this? I need to get outside. How did I come in? I don't remember. Shit. Ah! I know!"

And then he runs through the automatic door. FAIL.