Fix issue with signals when running on Windows