disconnect after exception