@watk It's being closed in the `do_log()` function. I didn't make it lazily initialized because I don't wanna have an open file during the whole life of the process. It seems that on Windows, `fopen` locks the file [1]. This would forbid concurrent `nvim` processes logging to the same file.

[1] http://www.howtogeek.com/141393/why-cant-i-alter-in-use-files-on-windows-like-i-can-on-linux-and-os-x/