Don’t be too hard on him, he was just bringing you a treat. You were supposed to be happy.
My dog who I inherited or a kill shelter years ago during the housing crash did the same to me. She was being raised as a inside out side watch dog so she being a American pit would want to change me out of my back yard every tome she went out. So I kept her inside when I went out.
She jumped up on the sliding back door trips the lock and locked me out. To make it worse I had to rig the gate door so she wouldn’t jump over it and make it higher but unsteady to climb. So I decided being barefooted and on the other side where I planted a bunch of cactus after some friends of my daughter who were staying over one night as teens said they saw someone trying to climb over the fence so I put cactus in front of it.
I had to hold on to or climb to the roof so held on till I got past the cactus and jumped then ran to the front door hoping she didn’t lock that too before I got there.
She had no clue what she did but got smart and later learned to open sliding doors. She’d just stand up and push it over. I told her when I got back inside she was lucky wasn’t at the pound.
A little while later she earned her place in the scheme of things not that I was expecting anything other than not eating my house and furniture as a pass time woke me up and she stoped a home invasion. It was then I realized she was being easy on me compared to a real threat. She scared that guy about 6 “ 3 o try so the dogs kept pushing me back and he ran off.