add shutdown hook for the tool Powerapi + remove the Powerapi's PID when the APPS and ALL are used