Set Transport.active to False early in Transport.__init__.

An exception in Transport.init will cause its repr to raise an AttributeError, which especially causes issues for error reporting that shows locals for the stack (e.g. Sentry or Django emails).

Moving self.active = False higher in Transport.init would fix this.