Added proper exception handling to log