Replace wp_die() with exit() for downloads