add functions stop for SIGUSR2