halonadm.py: catch brokepipe exception when trying to print something that is closed