I think that you should use ```self.logout``` for better reference.