Made sure install cleans up after itself when it fails.