Terminate app after downloading update