eval{}-wrap $loop->run so code after it can effectively be at END time for normal failures
Some renaming of variables and de-indentation of huge chunk of code