If an exception was thrown by one of the methods, we were not logging the event, which caused the CTS test to fail. In particular, this happened on non-AB devices, such as the emulator. Bug: 127268862 Change-Id: I8f853d5e0a8e810a570562071fb73266fee3b696 Test: atest CtsDevicePolicyManagerTestCases:com.android.cts.devicepolicy.DeviceOwnerTest#testInstallUpdateLogged