Only swallow exceptions which are subclasses of Exception in stateful te...

...sting - not helpful to block things like KeyboardInterrupt