(Un)register_connection instead of adding self.
alias_method :deregister_connection:unregister_connection.