delete item from queue before emitting `end` event

- provides most accurate queue info on event.
Merge pull request #1 from JoeChapman/feature/delete-queu-item-pre-emit

delete item from queue before emitting `end` event