Replaced Closeable in TileFactory with dispose() method