Fixed bug where the 'app-quit' event is not emitted when a device is disconnected. Also fixed issue where the callback is not properly fired when installApp() fails.