Handle error events on spawned processes

Refs #15