Handle ruby exception by returning 500