[C]add signal(ctrl+c) and clean the share memory.