kmshttpendpoint: Finish internal thread execution on dispose call

Change-Id: I9d4dfe87d5420e8d8a8df56d3f5f7419bc14904b
kmsplayerendpoint: Finish internal thread execution on dispose call

Change-Id: Ibe03bcfc656e7aab8e27bbb69d5846834d6bf4a7