Close The Connection After Polling

Closes the database connection after polling, seems to prevent a build up of open connections and curbs the memory usage of the plugin.