fixed concurrent connect/disconnect issues
fixed metaspace delete issue