Update: increased the probability of connection failure to simulate a behaviour that cannot be controlled in the test environment.