removed root.destroy()
Check if spinner is set