wait for tar to complete when closing stream in
Merge pull request #2 from cloudfoundry-incubator/sync-tar-close

wait for tar to complete when closing stream in