add shell quit and all process quit