Stepping out of the cockpit for anything like that would be a no no.
Can anyone remember that poor unfortunate Aer Arran pilot who got his face smashed in by two drunken itinerants a while ago?
Thankfully in that case, the aircraft was on the ground - one can only imagine the trouble it would have caused enroute.