change ConnectionRefused exception name to ConnectionRefusedError