closing connections in teardown