?? The pump is before the filter, I'm not sure closing the valve on the filter will do anything, once you pop the cover to the leaf basket the water pressure from the inlet is going to blow water everywhere.
Edit: maybe your setup is different than mine though -- but on mine it goes skimmer...