close and remove