<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def abort(self):
 """Close the transport immediately."""

        if self._handle.closed:
            return
        elif self._protocol is None:
            raise TransportError('transport not started')
        self._handle.close(self._on_close_complete)
        assert self._handle.closed