Wow I can't believe that no one has suggested the low tech rock solid solution to this... Put your cable modem's power plug on a timer. You can pick up power timers for a few bucks at any hardware store then the problem is solved. The cable modem will be off because it won't have power.