check every 10,000 messages or every 5 minutes
surround the whole while(true) in try/catch - not each iteration
need to initialize rawMessage
Merge pull request #1 from optimizely/check-upload-policy-less-frequently

Check upload policy less frequently