delete on exit variable error