still have some fail to quit, maybe bug in pexpect?