Cleanup and preparing daemon for managing gpio during web app lifecycle