Repository: added missing rEngine.close()