fix bug: cannot stop manager when set_offline