Log exception in case of test failure