move initiation of pthreadManager, result that if exit with error
parameters before start, the manager wouldn't be created