Logic to fail the test immediately if there is an issue in the application