dotcase: kill off thread when killing activity

Change-Id: I2aea08de3bd0b42cb67e1a32ed36df3c15c489cf