Jeremy/testutils

Not sure I understand this logic - why do we exit here if `hardReset` is `true`?

Also, to exit cleanly, you would ideally close the session first (it's done below on line 88).