close method per @mjallday 's suggestion