added try block at rService initialization. added end time after runscript