Handle `read` errors. Fixes #47.