:lol: Boxers have to be in the middle of everything, don't they?
You need to teach Cosmo a command, such as go to bed or something along those lines. That way when you don't want him around for whatever reason, you just tell him to "go to bed" and he should leave you alone. I've got a bed for Maddie upstairs and her crate is actually her bed downstairs. If I don't need her being my shadow at any specific time, I just tell her to go to bed, and she trots off to either her bed or crate.