#273 Provided more robust code to prevent timing issue during startup with Trezor