Add error logging to evaluation profiler and a few other incidental changes.