little clean up and some logging in the sqs block
Merge pull request #359 from mikedewar/sqsfix

little clean up and some logging in the sqs block