Can you prevent a module from being disabled?
If you're looking for a per-module solution, add the required property to its .info file.


  As of version 7.x, modules and themes may specify that they are absolutely required and should never be disabled by adding required = TRUE. These modules will be enabled automatically during install. In most cases it should only be used with the Drupal core required modules (e.g. Node, User, etc.).