I'd say take the slave first. That way you can take the end of the line and put it in a jar or plastic container or such and let the master drain while working on the slave. Should be less mess that way. Oh, and take the cap off the master while draining to allow plenty of air in.