Add exceptions in summary_log.py + other fixes.