backing up batch scripts before ranger gets shut down