also clean up on installation errors

This resolves #68.