Handle multiple exceptions in AsyncTestCase.

Previously we would silently swallow all but the last; now we
raise the first and log all the rest.

Closes #1177.