Throwing error in lifecycle hook doesn't stop script from executing

Thanks @sunnyson.
I was actually doing that already, but I see my example code snippet was confusing.
What ended up working was moving the code out of the try catch.