Added try catch around logging statement