trezor: raise and catch BaseException in signing