def connectionLost(self, reason):
AMP.connectionLost(self, reason)<EOL>if self.logout is not None:<EOL><INDENT>self.logout()<EOL>self.boxReceiver = self.logout = None<EOL><DEDENT>
If a login has happened, perform a logout.