Does program interruption close open files automatically?

This post talks about not closing a file on purpose.

What about unintentionally exiting the program? Will my files be blocked (I’m on Windows)?

I seem to remember having some problems with MATLAB years ago, and I had to close the whole program to liberate their handles.

Yes, but, I believe all file handles will be closed by all modern operating systems (i.e. all Julia supports). You might have been using an outdated operating system.

So Julia wouldn’t need to do anything, but you might miss unflushed data, at least if on segfault. So it depends on what you mean by unintentionally. There was a recent thread about caching CTRL-C.