associate a signal handler to the termination signal to construct and broadcast the leave packet