Close diagnostic manager socket if there isn't any requests