Replaced die call with Exception