terminate server directly by kill thread