Fixed mocklocation to be able to end the thread and mainactivity to be
able to restart the thread