Altered proc_open(...) call to include 'exec ' so proc_get_status() will return actual PID and state