Lets catch specific exception instead of all types of exceptions. And since only RotatingFileHandler can raise that excpetion, we should move other line out of the exception.