Wow, didn't expect a reply, but thank you!
Edit: may I also suggest showing a warning that says you have not saved yet when you close the program?