Bug fix in Windows Mobile program. Properly close program.
When the program is exited, it appears that the Project screen closes then the Main screen is reloaded, then closed. I would like the program to close faster and not leave the Main screen visible when closing since this is confusing for the user.
However, I want to make sure that no data are lost, and everything is saved properly when the program is closed.
Please document all changes in the code with comment lines that include an ID and the date.