Using teepot to avoid deadlock, removed bamsort_qname