ofstream is closed by the implicit destructor. Since the current
destructors in TextStrokeRenderer and PSStrokeRenderer are doing
nothing more than that, remove them and silence the warning. And also
be safe from a destructor throwing.
For ~Depsgraph, std::function's constructor can throw. Also passing
throwing statements in the lambda will not be detected by clang-tidy.
So @Sergey Sharybin (sergey) fixed it by using lambda as template. Fixes both of these
issues.