catch exceptions in pipe build - at least on windows