Write main data to S3 and new sqs queue as well as exceptions