close the tcpServer and mark it for deletation when the QHttpServer is deleted;