Circular logging bug, throw exception when tracking on stopped activity

Circular logging bug, throw exception when tracking on stopped activity