menu, update-all: Update episodes.json atomically on success
Before this commit episodes.json will be updated even if the program fails. Now it will only update on success, and log errors otherwise to a *.errors file.
Signed-off-by: Jookia 166291@gmail.com