In other places, like Ops manuals, things like this are written.
In an emergency situation, which requires immediate decision and action, he is to take any action he considers necessary under the circumstances. In such circumstances, he may deviate from rules, operational procedures and practices in the interests of safety.
Just a small part of the many pages of "Commander's Respnsibilities".