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