updated task dispatcher to wrap exceptions inside queue exception.