ref #98: catch and close rars if exceptions are thrown