Error handling that doesn't eat 100% CPU.