proper killing of processes added