Remember the BA 747 that had all 4 shutdown in volcanic ash over SE Asia.
Indeed, but they had a Flight Engineer, remained disciplined, at post, and focused on trying and re-trying everything possible...
Flight Engineer worked tirelessly at re-starting engines, and eventually succeeded... whilst pilots flew, navigated, communicated and Captain thought things through strategically even, as well as tactically.
Even retained flexibility to change those plans at short notice, when engines started failing a second time...
Would in todays cockpit environs, IMHO, to be possible to lose focus and subsequently the aircraft, but then I am not flight crew, so have no right really to pontificate