Added the first cut of the implementation of close