Raise an IO error instead of introducing a new object