Added errorhandling and configuration per queue
Deleted throw