Only call terminate when client still exists