Ensure outputstring is NULL when process fails