[#63822784] Better thread handling for queue connnections:

  * Puts queue connection in a thread variable
  * opens and closes channels instead of connections

wip: moving stuff in the adapter around

wip: moves the connection to a thread hopefully open all the time