added die in catch