Co-authored-by: Ivan Vershigora <ivan.vershigora@gmail.com>
After the conversion of LegacyWallet to typescript, BlueElectrum is often included automatically and tries to connect ASAP. Dedicated management code is necessary in beforeAll/afterAll so that the tests can run and terminate gracefully.