note to self: terminating a qthread is not a good idea