catch exception if fs.unlink does not work