added try/except for the first time run
added try/except for the first time run
added try/except for the first time run
modified log messages