Remove duplicate Close() method and io import