fix spawning multiple processes at once

pdc wrongly return result, even if process isn't done.

http://nodejs.org/api/child_process.html#child_process_event_exit

*This event is emitted when the stdio streams of a child process have all terminated. This is distinct from 'exit', since multiple processes might share the same stdio streams.*