Or you can just close all streams and not care about special cases.