replace kill process with clean buffer