catch an error when upgrading Haskell Platform