How to protect flow battery from leakage