Safety management of power battery pack