Fix disconnection method.