adding the shutdown signal to the client