Fixed a memory leak when adding too many event listeners to uncoughtexeption in the callbacks for QueuedItem