Added better error handling to houston.js.