Merge patch that fixes race with when using event releaser
Make nextSequence a local variable again
Separate the EventReleasing interface from the WorkHandler and rename to EventReleaseAware.  Add copyrights.