fix exception handler by removing petool extend directive in build.bat