Rare read/close bugfixes.