Update run as worker to pass SIGTERM correctly to subprocess