Removed redundant close operation