Fix issue when quitting app

Signed-off-by: remi-parain <rparain@ubidreams.com>