Thanks, it worked
I still have to decide if this is the way to go, but at least I know that there's a solution
UPDATE:
This seems to work. Unfortunately the background process is supposed to print out to a log. Because STDOUT and STDERR are closed, there is no log.
It seems that I need to think of another option.