Fix eventemitter leak