add release from connection
add thread-safe
debug error caused by thread