ustream-fd: fix read error handling