Move ImportLog creation inside try/catch block