disconnect on error too