Cleaned up copy-close process in url->file a bit