Use passed params for better hook robustness
Really terminate