We always advise to have a small 1Kw uninterruptible power supply (UPS) feeding the control circuit and PLC.  It is inexpensive protection.
FAQ by Assist International