add function judge julia is running or not,if it don't running then R fucntion should stop.