A few minor bug fixes (exit/rdm now work as intended)