Added error handle for redis in app.js.