Adding closeIfDone

This will let us call a more lightweight function when an upload part
is done instead of calling all of _doUpload again