Added "close_fds=True" in function 'connect'

Added 'close_fds=True' argument to 'Popen' to avoid zombie (defunct) process.