close sock when we're done downloading the file from another node
added upload handler for uploading files to the server