My only thought was to get out in the corridor as quick as ever I could.
All I could think about was to quickly get out in the corridor.
I thought about many things before walking out into the corridor.