A number of economical solutions to faulty soggyware come to mind.
- Banning coffee for flight crew for the same periods alcohol is banned
- Shackles and diapers
- Tasers in the seats operated by CC and/or Company maintenance
- A big red button that gasses the pilots and sets up an automatic landing