fix: disconnect on error