Minmal changes to make tests pass: do not delete logger if it alread exists, catch a few parsing exceptions, update arguments validation logic.