prevent queuing of output for tasks which are not attached to a session

Status Job ID Name Coverage
  Test
canceled #80738
test