add signal to a better exit of each process