I had 6 interviews with 8 different people at a startup over about 1.5 months and ended up not getting the gig! It wasn't for a technical position, but it included different assignments and definitely put me off.
I mean after all that effort I at least expected to get a job out of it.
A lot of things can be put in place to head off issues in the future.
1) Ensure you're in compliance with local labor laws in your area and that required signage is displayed.
2)Leave policies, including maternity/paternity, even if you don't have any female employees and no one is thinking about having kids yet. Jury duty, bereavement, etc
3) Equipment purchases by staff
4)Work from home policy
It's a lot easier to put this stuff together when it's not heat of the moment and based on favoritism. If these things are put in place it will also show incoming people that these are items someone has thought about and you aren't just winging it.
I mean after all that effort I at least expected to get a job out of it.