modified threads still problems

program still hangs if it is running when file menu is opened.