Well I'm not saying it would/could/or might hang or error out, just saying that setting the Function to the error is not the same as exiting the function.

A bit of this is theoritical and personal preference. You may run this function a thousand times and have no issues, but you might and having a set exit code (imho) would be a bit better.