Catch exceptions when trying to store timeline and log errors.