ebusdloop: main loop hardened