mingw-TP: encapsulate the hang