wp_die added on activation hook
error_log added to api calls when trigger error