Agree with Poodleholic on the safety and Tooney Dogs on the training.
Add one thing: Crate train him and if you cannot be there to watch him, crate him. If you are home and he is home, unless you are with him at the windows, tether him to you so he cannot be at the windows when you are not there to work on his retraining.
Add one thing: Crate train him and if you cannot be there to watch him, crate him. If you are home and he is home, unless you are with him at the windows, tether him to you so he cannot be at the windows when you are not there to work on his retraining.