Fix unexpectedExit event listeners length