'Implement the POSIX-ish (i.e.
L{twisted.internet.interfaces.IReactorFDSet}) method of detaching this
socket from the reactor for L{_BaseBaseClient}.'

def _stopReadingAndWriting(self):

    if hasattr(self, 'reactor'):
        self.stopReading()
        self.stopWriting()
