move Rserve stop method into util class