Stops and creates new thread each time for cloud