Assert if we can't open the log file.
Fixing a problem with finding sub dictionaries. Was
getting in to an infinite loop.