diff --git a/Module.cs b/Module.cs
index a4b256063c530d8ab1eea35dbf5dfb4549bb439e..a979c786b81f5340b150e91f00317db96764f70d 100644
--- a/Module.cs
+++ b/Module.cs
@@ -395,6 +395,9 @@ text = ERR
 			catch(System.Threading.Tasks.TaskCanceledException)
 			{
 			}
+			catch(System.OperationCanceledException)
+			{
+			}
 			Thread.Sleep(period_ms);
 		}
 	}