Stop application before updating