That's the reason why I keep my bins way in the back corner of my yard. If I mess up and make it stinky, nobody notices. It keeps any possible critters well away from the house. I've never been bothered by bugs. It is outside my house, and after all, the outside is nature and it belongs to them. It's where they belong and I'm the intruder. In some areas bears are a concern, but not around here.
Many people like to have the compost close to the house so it's easy to go out and toss in kitchen waste. I'd rather walk a bit than attract possible critters near the house. I don't compost in winter. I'm not going out there in 10 degrees for anything.
But I've been composting for many, many years, and really not had a problem with critters. I found mice in it twice, and a little snake once, and I think that was it.
Karen