finish single thread heartbeat server demon