potential fix for closed Connection