catch unexpected errors, once an error occured, restart the mornitor tree