clearing singleton on shutdown