fix bug when reload

stop the new worker and disconnect the old worker when reload