fix mem leak detect bug, destroy server when quit