Not much you can do to make it cleaner. Don't enema a dog. That doesn't work and risks their wellbeing. Feed them dog food with good fiber content and at set times of day. Then make sure they go before sex. For extra cleanliness you can use a skin safe baby wipe. Other than that, shit happens.
If the mess bothers you it's probably best to stick to other options.