@yuantingliu It's not that the connection has closed, it is the daemon threads exiting - does the close message arrive after one minute ?
Not fantastically better, it shows that the connection can stay open. I am not sure why the ScheduledThreadPoolExecutor/ScheduledExecutorService is shutting down.