Add error handling for check versions.