Stop uploading if maxLimit reached

Bug: 40158
Change-Id: If0a0362f988d1b9a235c36120d4e07b05755ca77