close waits until stdout/stderr are flushed, exit drops data, see https://github.com/joyent/node/issues/3846