Using the abort method instead of manually thorwing an exception.