Close object of type Closeable instead of ICloseable