PIDManager for PHP, stop running command twice