now closing rConnection when script access is not allowed.