Hi Lapo,
I apologize if this is already implemented - I didn't studied in-deep the docs of blue box yet.
So my suggestion is that the developer can set both the time and the number of attempts.
Foe example to set 3 attempts by 10 sec each and sfs:
1. Tries to connect.
2. If it does not connect within 10 sec tries again.
3. If it does not connect within 10 sec tries again.
4 Connect through blue box.
The description is not very clear but I hope you get it.