Added a close function to clean up unfired timeouts on a redeploy