Added error handling to the requestProxy.js so that it does not quit when it gets an unsuccessful response.