Fix multistep tests to really stop when one step fails.
Tests driving gdb should try to quit gdb before shutting down.

Sometimes pyexpect has trouble killing gdb. Telling gdb to quit
first seems to fix it.