Catch and log exceptions from setup or teardown of WindowTestBase

A lot of the test failures are due to issues in setup and/or teardown of
the tests. The test framework doesn't log errors that are thrown from
the @Before or @After block. This change allows the errors to get logged
so we can determine what the root issue for the test failures are.

Bug: 74078662
Test: Thrown exceptions in setup/teardown are logged.
Change-Id: I8eb0d112f9d34dad01f761d5ccd75ba0936ac026
1 file changed