Automatically install update when application closes
Removed test code