Issue - Custom built plugin deactivating daily

When a plugin is activated for the first time, a row is added to tbl_pluginmanager with the name of the plugin and whether the plugin is active or not. If the Application Pool is recycled, all plugins will be deactivated. Once the App Pool is running again any plugin that is shown as being active previously, based on the contents of tbl_pluginmanager, will be re-activated. For this process to work correctly for a custom made plugin, the plugin should return true  when the StartUp function is called and the plugin loads correctly, then the database can be updated accordingly.