Catch error events emitted cp.spawn, and re-emit an error.

Unless this exception is caught, nodejs will halt with without a clear error message.