How do I handle the window close event in Tkinter?,root.mainloop()