lua backend: added try/except.  fixed try/except for coffeescript backend.