Fix EBADF on Windows
Remove logs