Log error when debug callback throws an error