stops thread when app finishes + refreshes percentages