Fix the shutdown redirects for apis.