disconnect on any error to avoid crashing the entire thing