Try to workaround https://github.com/rSmart/issues/issues/158 ; added try/catch to be more forgiving.