now grit process is robust to exceptions. logging modified accordingly.