Catch exceptions during cp.spawn, and re-emit an error.

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