Move proxy to runtime. Fix error handling bug in multiplexer.