TYRUS-298: @OnClose related concurrency issues.