Tip, save yourself some grief and mess by having a plug and cap on hand to cap off the brake line and plug the hole in the backing plate.
You don't need to disconnect the brake line to take the rear wheel out, there should be enough slack if you undo the p-clip on the swing arm, then when you pull the wheel back remove the brake backplate and lay it on something of convenient height under the car.