log exception added on try catch