move the subprocess_worker_running to a location so that outside gems can use it