Created code for Exit menu item on main form that was omitted by mistake.