modified tcpcache to halt when required