rm try catch