An employee at a Google office. (REUTERS/Christian Hartmann)

A California man killing time on the Internet recently did what many people do to kill time on the Internet — Google his name. (There’s no shame in doing this, by the way. Maybe you’re curious about your top search result, or perhaps someone more famous has the same name and you want to see what they’re doing with it.)

But Christopher Viatafa spotted his photo on the Northern California Most Wanted page. Rather than doing any number of other things that may have ended poorly — like freaking out and fleeing the country, or freaking out and hiding in his basement, or freaking out and assuming a new identity — Viatafa instead just turned himself in to authorities.

“Although it wasn’t good judgment that landed him on the website – he was wanted by the San Leandro Police Department for discharging a firearm toward an inhabited dwelling – he did used good judgment to turn himself in after seeing his photo,” the police department said in a statement.

Speaking of the judgment that got his photo on the site, here’s what happened: Viatafa attended a party in San Leandro last August and got into an argument, during which he pulled out a handgun and fired “fired a few rounds” at the ground near the people he was arguing with, according to police. He was then taken out of the area and “proceeded to fire several more rounds,” police said.

After turning himself in earlier this month, Viatafa’s name was added to the ranks of captured fugitives. And his story now provides a new worst case scenario for what you might find the next time you Google yourself.