+ it is better to delay the connection to the signal/slot which detect if the app open or close. A close event at startup was found, shutting down the connection to the Headless service.