improve loop_this to show error count and add an option to do not stop when command fails