Close FDs for subprocesses

Subprocess module does not automatically close file descriptors for
pipes connected to child processes. Hence FDs leak on each cluster
launch. That commit fixes the bug.

Change-Id: I03a52d61acd6316d8fc5026c8eb5d38ad7d0e269
Merge "Close FDs for subprocesses"