Add type to Resources to allow for better naming.
Demote self on shutdown. Fix duplicate SQS batch messages.