The result of close() doesn't matter in general.