Added debug message for client count during shutdown.