Gate: cleaned up disconnection method.