Add API for check core thread + shutting down