RE: calling system gives exception, waitForProcess