Terminate http processing properly after onHeaders