Update bucket auto to return eof when disposed. Currently it can segfault because of empty sortedInput.