Stream resource, TO & DAO, better error handling for I/Os