Checking for a transitional running state in supervisorctl

Fixes #3977