Properly close unused connection