fixed connection leak (leading to freeze)