[minor] change to eventemitter3 and add listener to error/failure