Automatically connections cleanup