cleaned up message transmission to SNS.