Fix closed path drawing
Add quit confirmation dialog