Make task manager and task scheduler singletons