It extends `Closeable`, so it's fine to throw `IOException`.