Handle all read exceptions properly. Fixes #252