Use appropriate pid when handling streaming failure event