Minor improvements:
Semicolon added to generated script
Script generation async and cancellable again
When parsing crashes the error is logged and application does not crash