Add on application exit handler (with confirmation) plus fix really small menu issue.