identation
win32: cleanup process handles
use stdin/stdout instead of sockets