Gradually train your dog to sleep in its place, ideally in a special box of suitable size. This will not only save you from the annoying company but also make your pet more independent and patient.