A gas sniffer and retina imager could be connected to the FMS and interconnected to the Cops, then when the crew enters the cockpit an alarm sounds and gives you a chance to do a runner. Some of the younger P2Fers can still outrun both the CAA and the Peelers.
When I was a youngster I used to fly with a hangover sometimes, but after we lost a chap or two in some rather serious incidents it did finally result in my neurons being reconnected to stop me consumating any alcohol if I was flying within the richta hangover scale of 2 days.