close local file when done uploading
Merge pull request #4 from akalicki/file_close

close local file when done uploading