Try to handle errors better.