Use backend process stdin for termination

this should work better on windows but it needs to be tested