add detached process support

* skip detach process support on windows for now