add try catch to loggly