You can assign it to INVALID_HANDLE on top, just like child_pipe IMHO.