Method to retry failed tests by catching errors but not throwing. Useful in automated selenium testing where the environment is unstable.