Closes the underlying transport, powers down the controller if applicable, and unblocks any pending readPacket call.