It would be nice if PyModbus would quickly check to see if it was running on the main thread before calling 'Run' in StartTcpServer. If it IS being launched in a thread, you could then add 'installSignalHandlers=False' to avoid an exception.