minor fix for closed connections