closed file handles

if you haven't done it yet - thanks again for the plugin