change kill_proc method in functional_test and add event to dsplugins