Pexpect.close# Pexpect.close(ctl_id)[source]# Close one spawned process and forget its handle. Parameters: ctl_id (int) – spawned-process identifier.