Singleton pattern as possible fix for NPE that only appears after hours in the background