diff --git a/python/local/ovms_module/ovms/ptd/__init__.py b/python/local/ovms_module/ovms/ptd/__init__.py
index 908ca6ed8833163eaa1afe0233f043abe9592766_cHl0aG9uL2xvY2FsL292bXNfbW9kdWxlL292bXMvcHRkL19faW5pdF9fLnB5..83854973a3a2007bd1746d1a5cc4e949e98b87cd_cHl0aG9uL2xvY2FsL292bXNfbW9kdWxlL292bXMvcHRkL19faW5pdF9fLnB5 100755
--- a/python/local/ovms_module/ovms/ptd/__init__.py
+++ b/python/local/ovms_module/ovms/ptd/__init__.py
@@ -240,5 +240,5 @@
             )
         Ptd.tty_typahdsz = getsyi(SYI__TTY_TYPAHDSZ)[1]
 
-    def close(self):
+    def close(self) -> int:
         """Forces the pseudoterminal to be deleted and frees the channel"""
@@ -244,5 +244,9 @@
         """Forces the pseudoterminal to be deleted and frees the channel"""
-        _vmsptd.delete(self.ptd)
+        return _vmsptd.delete(self.ptd)
+
+    def cancel(self) -> int:
+        """Cance any I/O on channel"""
+        return _vmsptd.cancel(self.ptd)
 
     def clear_screen(self):
         """Clear the screen image"""