handle reconnecting to manager