def handle(self, error, connection):
error_class = error.__class__<EOL>if error_class in (ConnectionExpired, ServiceUnavailable, DatabaseUnavailableError):<EOL><INDENT>self.deactivate(connection.address)<EOL><DEDENT>elif error_class in (NotALeaderError, ForbiddenOnReadOnlyDatabaseError):<EOL><INDENT>self.remove_writer(connection.address)<EOL><DEDENT>
Handle any cleanup or similar activity related to an error
        occurring on a pooled connection.