Prevent double-uninstalls.

Closes #285 .