Escape of Cosmic Rays from the Galaxy and Effects on the Circumgalactic Medium.