Implemented cancel on multipart uploads, fixed memory issues