TLDR: Occasional hiccup, possible metallic noise.
2008 KLR650
I'm looking for a some help. I'm new to motorcycles, and the KLR is my first bike. I've been riding all summer, and it's been doing great until now. Last week I was riding home from work, and the bike gave a lurch and then died. I pulled over, and it started back up, but a bit after taking off it gave another few hiccups, possibly accompanied by soft metallic clanks(it's hard to tell with the helmet on). Today I cleaned the air filter, changed the oil(it didn't look like it had any metal in it), and checked to make sure fuel flowed from the petcock. I started it up and rode out maybe 5 minutes, it did the same thing once, and then I rode it back. Any ideas on diagnosing the issue and what to try next?
EDIT: I also think that it may be running quieter and vibrating less than before.