Handle cancelling builds on Windows.