Can you please die() when this is called from non-CLI?