Delete pid when agent stop command run is succeeded