Handle error events in spawned processes

Refs #3600