When you see him doing that, rather than holler at him, redirect him. Keep a stash of toys or bits of chicken or tuna in a baggie in the fridge handy for this purpose.

Not sure it will work, but worth a try.