log error for unlink