Rearranged the thread stopping code and added a debuggin statement to try and track down the strange rain values.