Remove old pending tasks when the device sends bootstrap event