also clean up on installation errors

This resolves #68.
Thanks for noticing.