intercept signals and stop service