Fix runtime error checking with lua* commands