better azure threaded queue handling

closes #1312