How restaurants do — and sometimes don't — end