fix a bug where stop messages were being ignored after the activity had been destroyed during a test