added cordova native exit