Add check if PID could be retrieved.