Properly interrupting daemons