We walked her on a leash with out other dogs around(this helps to keep them from wanting to play). We have one of those leashes that extends to about 16feet, and when she acted like she wanted to run we would lock it to where she couldnt go to far from us. When we came back in we would pick her up before entering the house (to keep our other dog from running at her) and would love on her and give her a treat for using the bathroom and tell her she's a good girl.
She stayed in her crate at all times(except to lay on the couch with us as long as she didnt act like she wanted to play). Especially at night, i didnt want to take the risk of her jumping up and down off the bed or for her and our other dog to start playing and us not knowing it. We did bring the crate in the bedroom and turned her to where she could see us, if she started whinning we got up and opened and loved on her a few min and put her back. We also, got her a bed and a "baby" to put in the crate with her so she was comfy.
When she was out of the crate, we would love her and pet her and let her lay alone as long as she was still. We let her eat and drink water out side of the crate so we could make sure she wasnt getting to much and would have to use the bathroom while we were able to take her out.
also, You will be forgiven, I promise. i worried about that also. I just made sure that she knew why she was in the crate and made sure that she got the same amount of attention as our other dog. It will break your heart to see them in the crate and all you have to do is tell your self why you are making them stay in the crate.
Now, My jack russell was very hyper after her injections, You may not have to crate yours as often as i had to, but it is safer to crate them because of their heart rate going up. This causes the heart worms to move more and it makes the medicine do something, and it can harm them.
They will tell you to wait 4-6 months to get the heart worm test done again after the injections, i recommend doing it 30 days after the final injection. I did this and the vet said that if the medicine worked then it will show neg after 30 days.