waitSpawned but works on
Blocks until either a
error event is fired.
spawn event fired, child process was successfully started
pid of the process can be obtained.
error event fires, child process was not started successfully.