add error handling to modify_episode()

the programm will now signal a error without aborting