Add rm exception handling.