TaskListener listener = hudsonLauncher.getListener();
RemoteCall remoteCall = new RemoteCall(
Arrays.asList(cmd), env, in, out, null,
remotePath,
listener);
Future future = channel.callAsync(remoteCall);
currentProcess = new RemoteProc(future);
} catch(IOException e) {
//try to close all the pipes before throwing an exception
closeBuffers();