die before redirect