Close the file stream when the htaccess_readfile function fails as well.