Make HttpEngine singleton restartable, close #1532