Mark master as 'crashed' if err() is called
Always try updating JSON when stopping the json process, which is needed for crashed cases