Log errors better.