Catch gradle CreateProcess error