log error for core expections