Update rproxy.js

exception handling