Use eventemitter style errors for tx library.