Restart bash if we get an EOF error.
Restart bash if there are any errors

Limit catches to pexpect.EOF, print previous output

Catch keyboard interrupts while waiting for bash prompt

Revert try/catch around expect_prompt