Easy example solution: get an overflow chest at the end of the barrel chain, if ANYTHING gets into the overflow chest stop all further extraction. That way you can come back, see that the overflow chest is full and clean up the clog yourself.
Also, you can lock barrels. Yup. Or, you could use...