Support write/close of STDIN for async proc.