Send sigterm to the local server when the client quits