fix #3878

bad vector usage, dont trust cppcheck blindly
fix #3876 (Spring not obeying return value of script Killed() function)