Add exception handling for pexpect.EOF thrown during self.execute calls