Fix exception handling for read_log
Add exception handling for do_import() decoding.