Use wp_die() instead of die()