I get indeed no crash with your code. The error message appears and then the script terminates.

Does anyone get a crash?