fixing connection leaks. tweaking benchmark tests.