wrapped delete in try/catch