Continue writing the next sentence.

How to keep a dog from chasing the vacuum cleaner
Put your dog in its crate.
To prevent your dog from chasing the vacuum cleaner, crate your dog. Put it in its crate and close the door.
This way, when you vacuum, your dog cannot chase the vacuum cleaner. You may feel more comfortable crating your dog while you vacuum if you are used to keeping it in its crate.