When government policies and decisions killed my buzzy New York startup, I learned to build a better (and more sustainable) operation.