By the end of what century were most beer houses closed