clear queued tasks before calling back