auto remove inactive connection