Adjusted closing the connection from within the checking thread