Handle error events on the second process