clean terminaison of process