tweaked detection of server idle close