throw error if EOF hit on sio read