Small change to the thread to ensure it stops running
Wrapped a few lines (had a clean up of all the project files earlier)