WIP: Handle IoErrors better