@anze3db yeah, yeah - same in Java. If you use a framework like Spring or Quarkus, there is usually a dedicated catch-all exception handler. However, the problem with those is that they are very generic and until the an exception bubbles up, it may traverse 100s of methods. This makes debugging a real pain.
The other point you raise is even more valid - how can anyone write safe code expecting that something would run all the time and not ever throw an exception or error?