log errors in init