There are places when exception is thrown after logging. That's why I made it return ex