When running external applications on Windows the destroy method deadlocked when closing the process streams