Added property to automatically close leaked connections