Make sure CAutoFile for fees estimate goes out of scope

A CAutoFile is opened for the fees estimate, but it is only flushed/closed when the function ends. We can do that much earlier.

Also, avoid an assignment where a direct construction is possible.