Use domains to handle uncaught exceptions.

This allows other tests to continue even if one throws an exception.