Fixed thread crashing the app onStop
Fixed error converting bool to pointer (good work clang for picking this up!)