correctly interrupt process