added a load check that auto closes connections