Improve error handling. Show lua error in exception message.