Moved exception handling to rmr.