Let's add a signal handler so we close everything nicelyon SIGTERM and SIGSTOP