Fixed double callback call on .values and .get

Because both proc.on.close and stdin.on.end were called for each process
the return callback was fired twice.

Move all the parsing code to proc.on.close - so it works as desired.