Updating error handling in try.js.