add reason when soft stop, and better logging delete pid_file