If errors cause test exit, take snapshots.
Pass back the text of any unexpected popups in exception before exiting.