Added wp_die to delete log file