I'm another one who eats a snack sometimes right before bed. I've allotted the calories for it, so it's not an issue.
But
initially, to get a grip on the night time munchies, I DID set a kitchen closed time. I HAD to break the habit of constant mindless eating at night (not to mention other times of day

), and making a STRICT, NO MATTER WHAT kitchen closed time did the trick.