Don't close in memory IOs to prevent try-with-resources pattern matching