Reject the promise for a command if an error event is fired
Merge pull request #722 from wibblymat/reject-on-spawn-error

Reject the promise for a command if an error event is fired