allow passing working directory, environment variables to cappie process; force stop process when finished