A dog is home after police in Cape May posted its mugshot on social media.

A Cape May Patrolman found Bean the pug in a yard on Sunday.

Police posted a photo of Bean on Facebook with the caption: “This is what happens when you run away from home.” It took a few hours before Bean’s owners tracked her down.

The owner, from Baltimore, thanked police and posted that Bean was sound asleep after an exciting run.

And, Bean’s bail…was paid in cookies.