Rewrite admin script
Reset SIGPIPE handler to prevent curl from continuing