Kill flash thread when destroying activity