Update critical counts on unit deletion
Save the counts after unit deletion
Also update TP counts

The calls for saving the Store and the TP have been moved to the bottom
of the function.
Update critical counts on unit saving