Lua Error detection in PLEG

My system throws occasional and random Lua Errors which I could never seem to track down. They usually resolve after a simple lua restart. Is there any way PLEG can detect when lua is in error so i can then force a restart using a condition/action?

M