Fix ticker goroutine leak when a peer dies, now stop the ticker
goroutine correctly.