def METHOD_NAME(self):
    self.closed = True
    # Clean up Event object.
    windll.kernel32.CloseHandle(self._event)
    if self._inputhook_context:
        self._inputhook_context.METHOD_NAME()
    self._console_input_reader.METHOD_NAME()