Added exit checks for all calls to CheckForUpdates function