Bug: rsClose may (rarely) cause MATLAB to crash
The rsClose() function may cause MATLAB to crash due to a memory error.