I work at home/manage my own Time as well. I drank heavily while working too, plus sprinkled the other chemicals in... I "got by" at work for quite a while. I started making some mistakes that were small, then started making some bigger ones...fortunately I was able to make it back to the program with my job still in tact. I definitely lost some clients though. It sounds like you had a nice blessing and hopefully a wake up call. The choice is now yours to respond to that.
If I kept drinking, I would lose my job. I would lose the respect of the professional community. I may "get dry" to get another job, but I would eventually lose that too. Next would come my family, then the roof over the head. At that point I would probably drink myself to a slow miserable death.
Keep coming back. You are not alone.