SERVER-5932 Fix use after free

BuildBot ticket: SERVER-10200
SERVER-10037: move reset first
SERVER-10128 More descriptive failure message in killop.js when assert.soon fails; documentation.