If the timer runs out, the herd will leave you. There is an option when you turn the quest in to keep the herd. I've never done this. I'm not sure what happens.
Glad I could help with that. Yeah, I think being able to assist in a siege defense could be improved.