replaces kill process with finish