Alternate strategy to detect unlink failure

Closes #12.