Add additional debug logging when connecting queues
Trap and reraise to rewrite error message
add support for dynamic and static lookups