Fix for stdin having eoi as well, break since data won't be populated

I was able to duplicate the OSError while using stdin and vim:
 pexpect.spawn('vim'
 pexpect.interact()

added the breaks since there shouldn't be a local data that's valid after the exception