Added second possibility where EIO is passed.