use unlink and exit on error