完成线程隔离。
use a trigger file to close nrepl when reply disconnect to it.