Every time a new connection is established in IndexService, there is a DruidTaskResolver submitting a runnable to a new thread (poll thread) bind to the connection and periodically check the task running status, but when the beam is closed, the poll runnable cannot be notified and cancled properly. This caused a thread leakage in a long-last running jvm.