Take into account --kill-at (-k) while generating .exp file.