[Runtime] Application should be terminated before uninstall or update.

The running application should be terminated when intend to uninstall or
update.

BUG=https://crosswalk-project.org/jira/browse/XWALK-945