preventing crash if files aren't exist when removing tasks