add PID status check
Merge pull request #1 from aziob/add-switchdeps-status-check

add PID status check