Is there a way to stop or close threads we make?