Fixed memory issues when leaving a qleap enabled application. Keep track of targets deletion.