add more log info/exception handling to pdf gen worker