Fix in destructors.

- log file was closed two times