F# how to exit program when something went wrong
<p>I'm new to <code>F#</code> and functional programming. I'm trying to write some simple scripts for processing files.</p>

<p>However sometimes early on in the program I might get an <code>exception</code>, because a file is not present or similar.</p>

<p>If I put everything in <code>option</code>s, my script gets cluttered with option handling in every subsequent method. Also I don't need to continue in the program, because it's already pointless.</p>

<p>How do I exit the program gracefully? I just want to end execution with a warning.</p>

<p>Using <code>exit</code> it crashes my <code>F# interactive</code> session in <code>Visual Studio Code</code>. Is there another way? </p>