handle remove errors