Fix on master for leak issue

We leaked an event listener every time an error was signaled.