[PATCH v3 1/7] stk: Clear 'respond_on_exit' flag after sending the terminal response