Keeping a livestream running if something fails?

how to keep a livestream running on Youtube and facebook without starting a new livestream in the event of a failure like lost of internet, power, mimolive memory leaks, crashes etc.

YouTube: Just select not to interrupt the stream.
Facebook: not possible.