Give shutdown more time to detect it has been closed.
@@ -84,6 +84,9 @@ public class HeaderTcpHandler<T extends NetworkContext<T>> extends SimpleCloseab
handlerManager.tcpHandler(handler);
} catch (Exception e) {
+ if (isClosed())
+ return;
+ Jvm.pause(50);
if (isClosed())
return;
if (o instanceof SubHandler) {
