modifications to End output and kill result