handles rmr exception case on windows