Removed redundant close