AutoCloseable on interfaces