Clean up remote_file