Use pending callbacks to stop tasks when unloading community