fixed .Last() to not crash when Rmpi is already detached