Almost fixed error when stopping long running code.
Proxy controller can now handle 301 redirects.